package cn.k7g.alloytest.alloycontenthandler;


import cn.k7g.alloy.expose.AlloyContentHandler;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 *
 * @author victor-wu
 * @date 2024/12/17 13:48
 */
@Component
@Primary
public class HelloAlloyContentHandler extends AlloyContentHandler {
    public static final String BEAN_NAME = "helloAlloyContentHandler";

    @Override
    public byte[] anonymousKey() {
        return "hello".getBytes();
    }

    @Override
    public byte[] ownerKey() {
        return new byte[0];
    }

    @Override
    public boolean isLogin() {
        return false;
    }
}
